<html>
    
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge">
        <meta name="viewport" content="width=device-width, initial-scale=1">
        <link rel="stylesheet" href="vendors/msui/css/msui.css" />
        <link rel="stylesheet" href="assets/css/main.css">
        <link rel="stylesheet" href="assets/css/app-nav.css">
        <script type="text/javascript" src="vendors/jquery/jquery.min.js"></script>
        <script type="text/javascript" src="vendors/msui/js/msui.min.js"></script>
        <script type="text/javascript" src="assets/js/app-nav.js"></script>
        <script type="text/javascript" src="assets/js/energyMapping.js"></script>
    </head>
    
    <body>
        <div class="app-nav">
        </div>
        <div class="app-wrapper">
            <div class="ms-g doc-ms-g">
                <div class="ms-u-sm-6 ms-u-md-6 ms-u-lg-6">
                    <div class="ms-g doc-ms-g">
                        <div class="ms-u-sm-6 ms-u-md-2 ms-u-lg-2">区域选择 ：</div>
                        <div class="ms-u-sm-6 ms-u-md-4 ms-u-lg-4">
                            <select data-ms-selected id="area" onchange="onAreaSelect()">
                                <option>All</option>
                            </select>
                        </div>
                        <div class="ms-u-sm-6 ms-u-md-2 ms-u-lg-2">时间选择 ：</div>
                        <div class="ms-u-sm-6 ms-u-md-4 ms-u-lg-4">
                            <div class="ms-form-group ms-form-icon ">
                                <i class="ms-icon-calendar"></i>
                                <input type="text" class="ms-form-field" placeholder="选择日期" data-ms-datepicker>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="ms-u-sm-6 ms-u-md-6 ms-u-lg-6"><button type="button" class="ms-btn ms-btn-primary">查询</button></div>
            </div>
            <div>
                <img src="assets/image/energyMapping.JPG" width="90%" height="85%">
            </div>
        </div>
    </body>
 <script>
     $.get('mockdata/distributionDataMonitor.json').done(
         function (data) {
             for(i=0;i<data.regions.length;i++){
                 $("#area").append("<option>"+data.regions[i].regionName+"</option>")
             }
         });
 </script>
    </html>